package com.demo.minicat;

/**
 * @author: lipan
 * @date: 2021/9/27 19:37
 */

public enum  HttpStatus {

    OK(200,"HTTP/1.1 200 OK"),NOTFOUND(404,"HTTP/1.1 404 NOT Found");

    private int statusCode;

    private String header;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    HttpStatus(int statusCode, String header) {
        this.statusCode = statusCode;
        this.header = header;
    }

}
